package com.w2e.travel.mapper;

import com.w2e.travel.entity.Contents;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yyyl
 * @since 2024-07-01
 */
public interface ContentsMapper extends BaseMapper<Contents> {

    @Update("update contents set is_use = 0 where travelogue_id = #{travelogueId}")
    void setUnUse(Integer travelogueId);


}
